package ai.yale.dao;

import ai.yale.bean.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by asus on 2017/8/17.
 */
@Component
public interface UserRepository extends MongoRepository<User, String> {

    List<User> findByUsername(String username);
    List<User> findById(String id);
}
